/* $Id:members.h $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 3.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/

#ifndef __MEMBERS_H
#define __MEMBERS_H

#include <string>
#include <map>
#include <list>
using namespace std;



class members {
    class unit *member;
    int status;
    int training;
public:
    members();

    // Field : member
    class unit& getMember() const;
    void setMember(class unit &v);

    // Field : status
    const int getStatus() const;
    void setStatus(const int v);

    // Field : training
    const int getTraining() const;
    void setTraining(const int v);

    void save(class channel &ch);
    void load(class channel &ch);
    void xml(ofstream &f, int l=0, int r=0);
};

#endif // __MEMBERS_H
